<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<div class="post single" id="post-<?php the_ID(); ?>">
		<h2 class="posttitle"><?php the_title(); ?></h2>
		<div class="postcontent">
			<?php the_content(); ?>
			<?php wp_link_pages('before=<p id="postpages">文章分页&after=</p>'); ?>
			<div class='postdate'>
			</div>
		</div>
		<div class="postmeta">
			<p>
			<?php the_author_posts_link(); ?> post at <?php esc_attr( the_time('Y-m-d H:i:s') ); ?>
			</p>
			<p>
			Category &raquo; <?php the_category(',') ?>
			</p>
			<p><?php the_tags('Tag &raquo; ', ', ', ''); ?></p>
		</div>
		
	</div>
	<?php comments_template(); // Get wp-comments.php template ?>
<?php
	endwhile;
	else : 
		echo walleve_404_message(); 
	endif;
?>
	<?php if(!(is_page() || is_single()) ){ ?>
		<div id="pagenav">
			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		</div>
	<?php } ?>
</div>
<?php walleve_sidebar() ?>
<?php get_footer(); ?>
